<template>
  <div>
    <div>
      <van-nav-bar
        title="收藏列表"
        left-arrow
        @click-left="$router.push('/user')"
      />
    </div>
    <Card v-for="item in renderData" :key="item.title" :item="item"></Card>
  </div>
</template>

<script>
import Card from "@/components/card";
import { enshrine } from "@/api/user";
export default {
  name: "shadow-page",
  components: {
    Card,
  },
  data() {
    return {
      renderData: [],
    };
  },
  async created() {
    const data = await enshrine();
    this.renderData = [...this.renderData, ...data.body];
  },
  methods: {},
};
</script>
